<!DOCTYPE html>

<html>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>

    <body>
        <p>点击按钮执行<em>displayDate()</em>函数.</p>
        <button onclick="displayDate()">点这里</button>
        <script>
            function displayDate()
            {
                document.getElementById("demo").innerHTML = Date();
            }
            console.log(typeof([1, 2, 3]))
        </script>
        <p id="demo"></p>
    </body>
</html>